<meta charset="UTF-8">

<style>
    div {
        position: absolute;
        font-size: 100px;
    }

    body {
        background: url(https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs2.best-wallpaper.net%2Fwallpaper%2F2880x1800%2F2006%2FTwo-red-lilies_2880x1800.jpg&refer=http%3A%2F%2Fs2.best-wallpaper.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1653016010&t=82c92a5016f8e0fbbabb37db69ba1596);
        background-size: 100% 100%;
    }
</style>
<div>🐝</div>
<script>
    var divObj = document.querySelector('div')
    // 蜜蜂随鼠标移动
    document.onmousemove = function (evt) {
        var e = evt || window.event
        var left = e.clientX - divObj.offsetWidth / 2
        var top = e.clientY - divObj.offsetHeight / 2
        divObj.style.left = left + 'px'
        divObj.style.top = top + 'px'
    }
</script>